<html>

<head>
<meta name=标题 content="">
<meta name=关键词 content="">
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 15 (filtered)">
<style>
<!--
 /* Font Definitions */
@font-face
	{font-family:"Courier New";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Times;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:DengXian;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"\@DengXian";}
@font-face
	{font-family:"Microsoft YaHei";
	panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
	{font-family:Menlo;
	panose-1:2 11 6 9 3 8 4 2 2 4;}
@font-face
	{font-family:"\@Microsoft YaHei";}
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:12.0pt;
	font-family:DengXian;}
code
	{font-family:Courier;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	text-indent:21.0pt;
	font-size:12.0pt;
	font-family:DengXian;}
p.a, li.a, div.a
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	line-height:200%;
	font-size:12.0pt;
	font-family:"Microsoft YaHei";}
.MsoChpDefault
	{font-family:DengXian;}
 /* Page Definitions */
@page WordSection1
	{size:595.0pt 842.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	layout-grid:15.6pt;}
div.WordSection1
	{page:WordSection1;}
 /* List Definitions */
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
-->
</style>

</head>

<body lang=ZH-CN style='text-justify-trim:punctuation'>

<div class=WordSection1 style='layout-grid:15.6pt'>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-size:14.0pt;line-height:200%;font-family:"Microsoft YaHei"'>restore</span></b></p>

<p class=MsoNormal align=left style='margin-bottom:12.0pt;text-align:left;
text-indent:21.0pt;line-height:200%;text-autospace:none'><span lang=EN-US
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>RESTORE</span><span
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>命令执行<span
lang=EN-US>dump(8)</span>的逆功能。文件系统的完全备份可以被恢复，随后的增量备份可以在其之上分层。可以通过全部或部分备份恢复单个文件和目录子树。还原可以跨网络工作；要做到这一点，请参阅下面描述的<span
lang=EN-US>-f</span>标志。命令的其他参数是指定要还原的文件名或目录名。除非指定了<span lang=EN-US>-h</span>标志<span
lang=EN-US>(</span>见下文<span lang=EN-US>)</span>，目录名的外观是指该目录的文件和<span
lang=EN-US>(</span>递归<span lang=EN-US>)</span>子目录。</span></p>

<p class=MsoNormal align=left style='margin-bottom:12.0pt;text-align:left;
text-indent:21.0pt;line-height:200%;text-autospace:none'><span
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>此命令的适用范围：<span
lang=EN-US>RedHat</span>、<span lang=EN-US>RHEL</span>、<span lang=EN-US>Ubuntu</span>、<span
lang=EN-US>CentOS</span>、<span lang=EN-US>SUSE</span>、<span lang=EN-US>openSUSE</span>、<span
lang=EN-US>Fedora</span>。</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>1</span></b><b><span style='font-family:
"Microsoft YaHei"'>、语法</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>restore  -C  [-cdHklMvVy]  [-b
blocksize]  [-D filesystem]  [-f file]  [-F script]  [-L limit]  [-s fileno]  [-T
directory]</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>restore  -i  [-acdhHklmMNouvVy]
 [-A file]  [-b blocksize]  [-f file]  [-F  script]  [-Q file]  [-s fileno]  [-T
directory]</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>restore  -P  file
[-acdhHklmMNuvVy]  [-b blocksize]  [-f file]  [-F script]  [-s fileno]  [-T
directory]  [-X filelist]  [ file ... ]</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>restore  -R  [-cdHklMNuvVy]  [-b
blocksize]  [-f file]  [-F  script]  [-s  fileno]  [-T directory]</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>restore  -r  [-cdHklMNuvVy] 
[-b  blocksize]  [-f file]  [-F script]  [-s fileno]  [-T directory]</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>restore  -t  [-cdhHklMNuvVy]  [-A
file]  [-b blocksize]  [-f file]  [-F script]  [-Q file]  [-s fileno]  [-T
directory]  [-X filelist]  [ file ... ]</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><b><span
lang=EN-US style='font-family:"Microsoft YaHei"'>restore  -x 
[-adchHklmMNouvVy]  [-A file]  [-b blocksize]  [-f file]  [-F script]  [-Q file]
 [-s fileno]  [-T directory]  [-X filelist]  [ file ... ]</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>&nbsp;</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>2</span></b><b><span style='font-family:
"Microsoft YaHei"'>、选项列表</span></b></p>

<table class=MsoTableGrid border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>模式</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border:solid windowtext 1.0pt;
  border-left:none;background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>说明</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-C</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>此模式允许比较转储中的文件。还原读取备份并将其内容与磁盘上的文件进行比较。它首先将其工作目录更改为已转储的文件系统的根目录，并将磁带与其新的当前目录中的文件进行比较。还请参阅下面描述的<span
  lang=EN-US>-L</span>标志。</span></p>
  </td>
 </tr>
 <tr style='height:211.2pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:211.2pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-i</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:211.2pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>此模式允许从转储中交互式地恢复文件。在从转储中读取目录信息之后，<span
  lang=EN-US>RESTORE</span>提供了一个类似<span lang=EN-US>shell</span>的界面，允许用户在选择要提取的文件的目录树周围移动。下面给出了可用的命令；对于那些需要参数的命令，默认的是当前目录。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>add  [arg]</span><span
  style='font-family:"Microsoft YaHei"'>，将当前目录或指定的参数添加到要提取的文件列表中。如果指定了目录，则将其及其所有后代添加到提取列表中<span
  lang=EN-US>(</span>除非在命令行上指定了<span lang=EN-US>-h</span>标志<span lang=EN-US>)</span>。解压缩列表中的文件在<span
  lang=EN-US>ls</span>列出时会加上<span lang=EN-US>“*”</span>。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>cd  arg</span><span style='font-family:
  "Microsoft YaHei"'>，<span lang=EN-US>Arg</span>将当前工作目录更改为指定的参数。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>delete  [arg]</span><span
  style='font-family:"Microsoft YaHei"'>，从要提取的文件列表中删除当前目录或指定的参数。如果指定了目录，则从提取列表中删除它及其所有子程序<span
  lang=EN-US>(</span>除非在命令行上指定了<span lang=EN-US>-h</span>标志<span lang=EN-US>)</span>。从目录中提取大部分文件的最佳方法是将目录添加到提取列表中，然后删除不需要的文件。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>extract</span><span style='font-family:
  "Microsoft YaHei"'>，提取列表中的所有文件都是从<span lang=EN-US>dump</span>中提取的。还原将询问用户希望挂载哪个卷。提取<span
  lang=EN-US>f ew</span>文件的最快方法是从最后一个卷开始，并向第一个卷工作。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>help</span><span style='font-family:
  "Microsoft YaHei"'>，列出可用命令的摘要。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>list  [arg]</span><span
  style='font-family:"Microsoft YaHei"'>，列出当前或指定的目录。作为目录的条目附加了<span lang=EN-US>“/”</span>。标记为提取的条目在前面加上<span
  lang=EN-US>“*”</span>。如果设置了详细标志，则还列出每个条目的<span lang=EN-US>inode</span>编号。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>pwd</span><span style='font-family:
  "Microsoft YaHei"'>，打印当前工作目录的完整路径名。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>quit</span><span style='font-family:
  "Microsoft YaHei"'>，<span lang=EN-US>RESTORE</span>立即退出，即使提取列表不是空的。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>setmodes</span><span style='font-family:
  "Microsoft YaHei"'>，添加到提取列表中的所有目录都有它们的所有者、模式和时间设置；没有从转储中提取任何内容。这对于在还原过早中止后进行清理非常有用。</span></p>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>verbose</span><span style='font-family:
  "Microsoft YaHei"'>，切换<span lang=EN-US>-v</span>标志的感觉。设置时，详细标志将导致<span
  lang=EN-US>ls</span>命令列出所有条目的<span lang=EN-US>inode</span>编号，还会导致还原在提取每个文件时打印出有关每个文件的信息。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-P file</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>还原从现有转储文件中创建新的快速文件访问文件，而不还原其内容</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-R</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>RESTORE</span><span style='font-family:
  "Microsoft YaHei"'>请求一个多卷集的特定磁带，在该磁带上重新启动完全恢复<span lang=EN-US>(</span>请参阅下面的<span
  lang=EN-US>-r</span>标志<span lang=EN-US>)</span>。如果恢复已被中断，则此操作非常有用。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-r</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>恢复<span
  lang=EN-US>(</span>重建<span lang=EN-US>)</span>文件系统。目标文件系统应该以<span lang=EN-US>mke2fs(8)</span>作为原始文件系统，并在恢复初始<span
  lang=EN-US>0</span>级备份之前将用户<span lang=EN-US>CD</span>安装到原始文件系统中。如果级别<span
  lang=EN-US>0</span>成功恢复，则可以使用<span lang=EN-US>-r</span>标志在级别<span lang=EN-US>0</span>之上还原任何必要的增量备份。<span
  lang=EN-US>-r</span>标志禁止交互式文件提取，如果不小心使用，可能会损害个人的健康<span lang=EN-US>(</span>更不用说磁盘了<span
  lang=EN-US>)</span>。例如：</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>mke2fs /dev/sda1</span></b></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>mount /dev/sda1 /mnt</span></b></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>cd /mnt</span></b></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>restore rf /dev/st0</span></b></p>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>注意，<span
  lang=EN-US>restore</span>会在根目录中留下一个文件<span lang=EN-US>restoresymable</span>，以便在增量恢复传递之间传递信息。当最后一次增量恢复时，应删除此文件。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-t</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>如果指定文件发生在备份上，则列出指定文件的名称。如果没有给出文件参数，则列出根目录，这将导致列出备份的全部内容，除非指定了<span
  lang=EN-US>-h</span>标志。旧的<span lang=EN-US>dumpdir(8)</span>程序。也见下面的<span
  lang=EN-US>-X</span>选项。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-x</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>命名文件从给定媒体中读取。如果指定的文件匹配内容位于备份上且未指定<span
  lang=EN-US>-h</span>标志的目录，则将递归提取该目录。恢复所有者、修改时间和模式<span lang=EN-US>(</span>如果可能的话<span
  lang=EN-US>)</span>。如果没有提供文件参数，则提取根目录，这将导致提取备份的全部内容，除非指定了<span lang=EN-US>-h</span>标志。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>选项</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>说明</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>--version</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>显示命令版本信息</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>--help</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>显示帮助信息</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-a</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>在<span
  lang=EN-US>-i</span>或<span lang=EN-US>-x</span>模式下，<span lang=EN-US>RESTORE</span>要求用户提供要提取的文件的卷号<span
  lang=EN-US>(</span>目的是通过只读取有趣的卷来减少时间<span lang=EN-US>)</span>。<span
  lang=EN-US>“-a”</span>选项禁止这种行为，并从<span lang=EN-US>1</span>开始读取所有卷。当运算符不知道要提取的文件在哪个卷上或当他喜欢较长的无人值守模式而不是较短的交互模式时，此选项非常有用。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-A archive_file</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>从<span
  lang=EN-US>ARCHIVE_FILE</span>而不是媒体读取目录。这个选项可以与<span lang=EN-US>-t</span>、<span
  lang=EN-US>-i</span>或<span lang=EN-US>-x</span>选项结合使用，这样就可以检查文件是否在媒体上，而不必挂载媒体。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-b blocksize</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>每个转储记录的千字节数。如果未指定<span
  lang=EN-US>-b</span>选项，还原将尝试动态确定媒体块大小</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-c</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>通常，<span
  lang=EN-US>RESTORE</span>将尝试动态地确定转储是从旧的<span lang=EN-US>(</span>预<span
  lang=EN-US>-4.4)</span>文件系统还是从新的格式文件系统生成的。<span lang=EN-US>-c</span>标志禁用此检查，并且只允许以旧格式读取转储。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-d</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>打印调试信息</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-D filesystem</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-D</span><span style='font-family:"Microsoft YaHei"'>标志允许用户在使用<span
  lang=EN-US>RESTORE</span>和<span lang=EN-US>-C</span>选项检查备份时指定文件系统名称。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-f file</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>从文件中读取备份；文件可能是一个特殊的设备文件，如<span
  lang=EN-US>/dev/st0(</span>磁带驱动器<span lang=EN-US>)</span>、<span lang=EN-US>/dev/sda
  1(</span>磁盘驱动器<span lang=EN-US>)</span>、普通文件或<span lang=EN-US>-(</span>标准输入<span
  lang=EN-US>)</span>。如果文件的名称“<span lang=EN-US>host:file or user@host:file</span>”，则使用<span
  lang=EN-US>rmt(8)</span>还原远程主机上的指定文件。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-F script</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>在每个磁带的开头运行脚本。设备名称和当前卷号将在命令行上传递。如果恢复应该继续而不要求用户更改磁带，则脚本必须返回<span
  lang=EN-US>0</span>；如果恢复应该继续，则返回<span lang=EN-US>1</span>，但要求用户更改磁带。任何其他退出代码都将导致还原中止。出于安全考虑，在运行脚本之前，还原返回到实际用户<span
  lang=EN-US>ID</span>和真实组<span lang=EN-US>ID</span>。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-h</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>提取实际目录，而不是它引用的文件。这将防止从转储中恢复完整子树的层次结构。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-H hashzize</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>使用具有指定数目的条目的哈希表来存储目录条目，而不是链接列表。这个哈希表将大大加快<span
  lang=EN-US>inode</span>查找速度<span lang=EN-US>(</span>在从还原列表中添加<span
  lang=EN-US>/</span>删除文件时，在交互模式下尤其可见<span lang=EN-US>)</span>，但代价是使用更多的内存。默认值为<span
  lang=EN-US>1</span>，意味着不使用散列表。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-k</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>与远程磁带服务器联系时使用<span
  lang=EN-US>Kerberos</span>身份验证。<span lang=EN-US>(</span>只有在编译还原时启用此选项时才可用。<span
  lang=EN-US>)</span></span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-l</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>在进行远程还原时，假设远程文件是常规文件<span
  lang=EN-US>(</span>而不是磁带设备<span lang=EN-US>)</span>。如果要还原远程压缩文件，则需要指定此选项，否则还原将无法正确访问它。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-L limit</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-L</span><span style='font-family:"Microsoft YaHei"'>标志允许用户在使用<span
  lang=EN-US>RESTORE</span>和<span lang=EN-US>-C</span>选项检查备份时指定最大错误比较数。如果达到此限制，<span
  lang=EN-US>RESTORE</span>将以错误消息中止。值<span lang=EN-US>0(</span>默认值<span
  lang=EN-US>)</span>禁用检查。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-m</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>按<span
  lang=EN-US>inode</span>编号而不是按文件名提取。如果只提取几个文件，并且希望避免重新生成文件的完整路径名，这是非常有用的。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-M</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>启用多卷功能<span
  lang=EN-US>(</span>用于读取使用<span lang=EN-US>-M</span>选项转储的转储<span lang=EN-US>)</span>。使用<span
  lang=EN-US>-f</span>指定的名称被视为前缀，并尝试按顺序读取<span lang=EN-US>&lt;prefix&gt;001</span>、<span
  lang=EN-US>&lt;prefix&gt;002</span>等</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-N</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-N</span><span style='font-family:"Microsoft YaHei"'>标志使<span
  lang=EN-US>RESTORE</span>按照<span lang=EN-US>-i</span>，<span lang=EN-US>-R</span>，<span
  lang=EN-US>-r</span>，<span lang=EN-US>t</span>或<span lang=EN-US>x</span>命令之一的请求执行完全执行，而不实际在磁盘上写入任何文件。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-o</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-o</span><span style='font-family:"Microsoft YaHei"'>标志使<span
  lang=EN-US>RESTORE</span>自动恢复当前目录权限，而无需询问操作符是在<span lang=EN-US>-i</span>或<span
  lang=EN-US>-x</span>模式中这样做。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-Q file</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>使用文件，以便在<span
  lang=EN-US>-i</span>、<span lang=EN-US>-x</span>或<span lang=EN-US>-t</span>模式中使用转储快速文件访问模式读取磁带位置。建议将<span
  lang=EN-US>st</span>驱动程序设置为在调用带参数的转储<span lang=EN-US>/</span>还原之前返回逻辑磁带位置，而不是物理磁带位置。因为并非所有磁带设备都支持物理磁带位置，所以当<span
  lang=EN-US>st</span>驱动程序设置为默认物理设置时，这些磁带设备在转储<span lang=EN-US>/</span>还原期间返回一个错误。关于如何设置驱动程序返回逻辑磁带位置，请参见<span
  lang=EN-US>st(4)</span>手册页、<span lang=EN-US>MTSETDRVBUFFER</span>选项或<span
  lang=EN-US>mt(1)</span>手册页。在使用参数<span lang=EN-US>-q</span>调用<span lang=EN-US>RESTORE</span>之前，始终确保<span
  lang=EN-US>st</span>驱动程序被设置为返回调用<span lang=EN-US>Dump</span>期间使用的相同类型的磁带位置。否则可能会混淆此选项。从本地或远程磁带<span
  lang=EN-US>(</span>见上文<span lang=EN-US>)</span>或从本地或远程文件。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-s fileno</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>从多文件磁带上指定的文件读取。文件编号从<span
  lang=EN-US>1</span>开始</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-T dir</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-T</span><span style='font-family:"Microsoft YaHei"'>标志允许用户指定用于存储临时文件的目录。默认值为<span
  lang=EN-US>/tmp</span>。此标志在从软盘启动后恢复文件时最有用。软盘文件系统上可能很少或没有空间，但可能存在另一个空间来源。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-u</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>在创建某些类型的文件时，如果目标目录中已经存在<span
  lang=EN-US>RESTORE</span>，则<span lang=EN-US>RESTORE</span>可能会生成警告诊断。为了防止这种情况，<span
  lang=EN-US>-u(Unlink)</span>标志导致还原在尝试创建新条目之前删除旧条目。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-v</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>正常情况下，<span
  lang=EN-US>RESTORE</span>会默默地完成它的工作。<span lang=EN-US>-v(</span>详细<span
  lang=EN-US>)</span>标志导致它键入它所处理的每个文件的名称，并在其文件类型之前进行处理。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-V</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>启用读取多卷非磁带介质<span
  lang=EN-US>(</span>如<span lang=EN-US>cdrom)</span>。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-X filelist</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>读取除命令行中指定的文件外，还要从文本文件列表中列出或提取的文件列表。这可以与<span
  lang=EN-US>-t</span>或<span lang=EN-US>-x</span>命令一起使用。文件列表应该包含由换行符分隔的文件名。文件列表可以是普通文件或“<span
  lang=EN-US>-</span>”<span lang=EN-US>(</span>标准输入<span lang=EN-US>)</span></span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-y</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>不要问用户是否在发生错误时中止还原。始终尝试跳过坏块并继续</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>--tmpdir=[dir]</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>指定临时文件的路径，如果<span
  lang=EN-US>tmpdir</span>后面没有路径，那么临时文件创建在<span lang=EN-US>/tmp</span>目录下</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>TEMPLATE</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>临时文件名，名字中必须包含至少<span
  lang=EN-US>3</span>个字母<span lang=EN-US>X</span>。如果没有指定，那么默认是<span lang=EN-US>tmp.</span></span><span
  lang=EN-US> </span><span lang=EN-US style='font-family:"Microsoft YaHei"'>XXXXXXXXXX</span></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>3</span></b><b><span style='font-family:
"Microsoft YaHei"'>、说明</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
style='font-family:"Microsoft YaHei"'>如果得到读取错误，则进行抱怨。如果指定了<span lang=EN-US>y</span>，或者用户响应<span
lang=EN-US>y</span>，<span lang=EN-US>RESTORE</span>将尝试继续还原。如果使用多个磁带卷进行备份，还原将在安装下一个卷时通知用户。如果指定了<span
lang=EN-US>-x</span>或<span lang=EN-US>-i</span>标志，<span lang=EN-US>RESTORE</span>还将询问用户希望挂载哪个卷。提取几个文件的最快方法是从最后一个卷开始，然后开始第一个卷。</span></p>

<p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>有许多一致性检查可以通过<span
lang=EN-US>RESTORE</span>列出。大多数检查都是不言自明的，或者<span lang=EN-US>“</span>永远不会发生<span
lang=EN-US>”</span>。常见错误如下：</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>1</span><span
style='font-family:"Microsoft YaHei"'>）<span lang=EN-US>Converting to new file
system format</span>，从旧文件系统创建的转储磁带已经加载。它将自动转换为新的文件系统格式。</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>2</span><span
style='font-family:"Microsoft YaHei"'>）<span lang=EN-US>&lt;filename&gt;: not
found on tape</span>，指定的文件名列在磁带目录中，但没有在磁带上找到。这是由于查找文件时磁带读取错误以及使用在活动文件系统上创建的转储磁带造成的。</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>3</span><span
style='font-family:"Microsoft YaHei"'>）<span lang=EN-US>expected next file
&lt;inumber&gt;, got &lt;inumber&gt;</span>，出现了一个未在目录中列出的文件。这可能发生在使用在活动文件系统上创建的转储时。</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>4</span><span
style='font-family:"Microsoft YaHei"'>）<span lang=EN-US>Incremental dump too
low</span>，在执行增量恢复时，加载了在上一次增量转储之前写入的转储，或者加载了增量级别过低的转储。</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>5</span><span
style='font-family:"Microsoft YaHei"'>）<span lang=EN-US>Incremental dump too
high</span>，当执行增量恢复时，当先前的增量转储停止时，或者加载的增量级别过高时，不开始覆盖的转储。</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>6</span><span
style='font-family:"Microsoft YaHei"'>）<span lang=EN-US>Tape read error while
restoring &lt;filename&gt;</span></span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>7</span><span
style='font-family:"Microsoft YaHei"'>）<span lang=EN-US>Tape read error while
skipping over inode &lt;inumber&gt;</span></span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>8</span><span
style='font-family:"Microsoft YaHei"'>）<span lang=EN-US>Tape read error while
trying to resynchronize</span>，已发生磁带<span lang=EN-US>(</span>或其他媒体<span
lang=EN-US>)</span>读取错误。如果指定了文件名，其内容可能是部分错误。如果正在跳过<span lang=EN-US>inode</span>或磁带试图重新同步，则未将提取的文件损坏，但可能无法在磁带上找到文件。</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>9</span><span
style='font-family:"Microsoft YaHei"'>）<span lang=EN-US>resync restore, skipped
&lt;num&gt; blocks</span>，转储读取错误后，还原可能必须重新同步自身。此消息列出跳过的块数。</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>4</span></b><b><span style='font-family:
"Microsoft YaHei"'>、退出码</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>“restore”</span><span
style='font-family:"Microsoft YaHei"'>退出，成功时状态为零。磁带错误用退出代码<span lang=EN-US>1</span>表示。在对转储文件进行比较时，退出代码为<span
lang=EN-US>2</span>表示自转储后某些文件已被修改或删除。</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>5</span></b><b><span style='font-family:
"Microsoft YaHei"'>、环境变量</span></b></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     </span><span style='font-family:"Microsoft YaHei"'>如果存在以下环境变量，则<span
lang=EN-US>restore</span>将使用该变量<span lang=EN-US>;</span></span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     1)TAPE</span><span style='font-family:"Microsoft YaHei"'>，如果没有指定“<span
lang=EN-US>-f</span>“选项，<span lang=EN-US>restore</span>将使用通过磁带指定的设备作为转储设备。<span
lang=EN-US>TAPE</span>的形式可以是<span lang=EN-US>tapename</span>、<span lang=EN-US>host</span>：<span
lang=EN-US>tapename</span>或<span lang=EN-US>user@host</span>：<span lang=EN-US>tapename</span>。</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     2)TMPDIR</span><span style='font-family:"Microsoft YaHei"'>，<span
lang=EN-US>TMPDIR</span>中给出的目录将用于存储临时文件，而不是“<span lang=EN-US>/tmp</span>“。</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     3)RMT</span><span style='font-family:"Microsoft YaHei"'>，环境变量<span
lang=EN-US>RMT</span>将用于确定远程<span lang=EN-US>RMT(8)</span>程序的路径名。</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     4)RSH</span><span style='font-family:"Microsoft YaHei"'>，<span
lang=EN-US>RESTORE</span>使用这个变量的内容来确定在进行网络恢复时要使用的远程<span lang=EN-US>shell</span>命令的名称<span
lang=EN-US>(rsh</span>、<span lang=EN-US>ssh</span>等<span lang=EN-US>)</span>。如果未设置此变量，则将使用<span
lang=EN-US>rcmd(3)</span>，但只有<span lang=EN-US>root</span>用户才能进行网络恢复。</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>6</span></b><b><span style='font-family:
"Microsoft YaHei"'>、文件</span></b></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     1</span><span style='font-family:"Microsoft YaHei"'>）<span
lang=EN-US>/dev/st0</span>，默认磁带设备。</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     2</span><span style='font-family:"Microsoft YaHei"'>）<span
lang=EN-US>/tmp/rstdir</span>，包含磁带上目录的文件。</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     3</span><span style='font-family:"Microsoft YaHei"'>）<span
lang=EN-US>/tmp/rstmode*</span>，目录的所有者、模式和时间戳。</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     4</span><span style='font-family:"Microsoft YaHei"'>）<span
lang=EN-US>./restoresymtable</span>，增量还原之间传递的信息。</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>7</span></b><b><span style='font-family:
"Microsoft YaHei"'>、<span lang=EN-US>bug</span></span></b></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     </span><span style='font-family:"Microsoft YaHei"'>在从活动文件系统上进行的转储执行增量还原时，<span
lang=EN-US>RESTORE</span>可能会变得混乱。在完全恢复之后必须执行<span lang=EN-US>0</span>级转储。因为还原在用户代码中运行，因此它无法控制<span
lang=EN-US>inode</span>的分配；因此，必须执行完全转储，以获得反映新<span lang=EN-US>inode</span>编号的新目录集，即使文件的内容不变。</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
style='font-family:"Microsoft YaHei"'>临时文件<span lang=EN-US>/tmp/rstdir*</span>和<span
lang=EN-US>/tmp/rstmode*</span>是根据转储日期和进程<span lang=EN-US>ID(</span>见<span
lang=EN-US>mktemp(3)</span>生成的，除非使用“<span lang=EN-US>-r</span>“或”<span
lang=EN-US>-R</span>“。因为”<span lang=EN-US>-R</span>“允许您重新启动可能被中断的<span
lang=EN-US>”-r</span>“操作，所以不同进程之间的临时文件应该是相同的。在所有其他情况下，这些文件是唯一的，因为可以同时启动两个不同的转储，不同的操作不应该相互冲突。</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
style='font-family:"Microsoft YaHei"'>要进行网络恢复，您必须以<span lang=EN-US>root</span>用户身份运行<span
lang=EN-US>RESTORE</span>或使用远程<span lang=EN-US>shell</span>替换<span lang=EN-US>(</span>请参见<span
lang=EN-US>RSH</span>变量<span lang=EN-US>)</span>。这是由于以前的安全历史转储和恢复。<span
lang=EN-US>(RESTORE</span>是写为<span lang=EN-US>setuid root</span>的，但我们不确定所有的<span
lang=EN-US>bug</span>都是从代码运行的<span lang=EN-US>setuid</span>中冒出来的。<span
lang=EN-US>)</span></span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
style='font-family:"Microsoft YaHei"'>在恢复“<span lang=EN-US>-i</span>“或”<span
lang=EN-US>-x</span>“模式<span lang=EN-US>(</span>除非<span lang=EN-US>-o</span>选项正在使用<span
lang=EN-US>)</span>结束时，<span lang=EN-US>RESTORE</span>将询问操作符是否设置当前目录的权限。如果运算符确认此操作，则启动还原的目录上的权限将被转储根<span
lang=EN-US>inode</span>上的权限替换。虽然这种行为并不是一个真正的错误，但它本身对许多用户来说是很混乱的，因此建议回答<span
lang=EN-US>‘no’</span>，除非您正在执行完全恢复，并且您确实希望恢复<span lang=EN-US>‘/’</span>的权限。</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
style='font-family:"Microsoft YaHei"'>应该强调的是，由于它是在用户代码中运行的，所以在使用<span
lang=EN-US>-C</span>选项运行时，<span lang=EN-US>RESTORE</span>会看到内核呈现的文件，而<span
lang=EN-US>DUP</span>则会看到给定文件系统上的所有文件。特别是，在比较转储文件系统时，这可能会造成一些混乱，而该文件系统的一部分是由安装在其上的文件系统隐藏的。</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>8</span></b><b><span style='font-family:
"Microsoft YaHei"'>、实例</span></b></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     1</span><span style='font-family:"Microsoft YaHei"'>）创建临时文件</span></p>

<table class=a0 border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr style='height:14.9pt'>
  <td width=836 valign=top style='width:836.15pt;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt;height:14.9pt'>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  weijie]# <b>mktemp wj123.XXXX       //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>名字包含</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>4</span></b></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>个</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>X</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>wj123.kpET</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>You have new mail
  in /var/spool/mail/root</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  weijie]#<b> mktemp wj123.XXXXXX     //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>名字包含</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>6</span></b></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>个</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>X</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>wj123.oH2o4P</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  weijie]# <b>ls</b></span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>1.c  wj123.kpET 
  wj123.oH2o4P</span></code></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     2</span><span style='font-family:"Microsoft YaHei"'>）创建临时目录</span></p>

<table class=a0 border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr style='height:14.9pt'>
  <td width=836 valign=top style='width:836.15pt;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt;height:14.9pt'>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  weijie]# <b>mktemp -d wjtp         //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>名字中没有</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>X</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><b><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>mktemp: </span></b></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>模板</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>&quot;wjtp&quot;
  </span></b></code><code><b><span style='font-size:10.0pt;line-height:200%;
  font-family:DengXian'>中</span></b></code><code><b><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>X </span></b></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>太少</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  weijie]#<b> mktemp -d wjtpxxx      //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>名字中没有</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>X</span></b></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>，这里可以看到</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>X</span></b></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>必须是大写的</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><b><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>mktemp: </span></b></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>模板</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>&quot;wjtpxxx&quot;
  </span></b></code><code><b><span style='font-size:10.0pt;line-height:200%;
  font-family:DengXian'>中</span></b></code><code><b><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>X </span></b></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>太少</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  weijie]#<b> mktemp -d wjtpXXX      //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>创建成功</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>wjtpflR</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'> [root@localhost
  weijie]#<b> ls -l</b></span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span style='font-size:
  10.0pt;line-height:200%;font-family:DengXian'>总用量</span></code><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'> 4</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>-rw-r--r-- 1 root
  root    0 9</span></code><code><span style='font-size:10.0pt;line-height:
  200%;font-family:DengXian'>月</span></code><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>   7 09:11 1.c</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><b><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>-rw------- 1 root
  root    0 9</span></b></code><code><b><span style='font-size:10.0pt;
  line-height:200%;font-family:DengXian'>月</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>   7
  14:47 wj123.kpET</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><b><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>-rw------- 1 root
  root    0 9</span></b></code><code><b><span style='font-size:10.0pt;
  line-height:200%;font-family:DengXian'>月</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>   7
  14:47 wj123.oH2o4P</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><b><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>drwx------ 2 root
  root 4096 9</span></b></code><code><b><span style='font-size:10.0pt;
  line-height:200%;font-family:DengXian'>月</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>   7
  14:50 wjtpflR</span></b></code></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     3</span><span style='font-family:"Microsoft YaHei"'>）在<span
lang=EN-US>/tmp</span>中创建临时文件</span></p>

<table class=a0 border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr style='height:14.9pt'>
  <td width=836 valign=top style='width:836.15pt;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt;height:14.9pt'>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  weijie]# <b>mktemp --tmpdir wj234.XXX             //tmpdir</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>没有指定路径，在</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>tmp</span></b></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>下创建</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>/tmp/wj234.BNy</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>You have new mail
  in /var/spool/mail/root</span></code></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>4</span><span
style='font-family:"Microsoft YaHei"'>）在指定目录下创建临时目录</span></p>

<table class=a0 border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr style='height:14.9pt'>
  <td width=836 valign=top style='width:836.15pt;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt;height:14.9pt'>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  weijie]# <b>mktemp --tmpdir=/weijie wj234.XXX    //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>在</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>tmpdir</span></b></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>指定的路径下创建</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>/weijie/wj234.q1C</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  weijie]#<b> ls</b></span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>1.c  wj123.kpET 
  wj123.oH2o4P  wj234.q1C  wjtpflR</span></code></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>5</span><span
style='font-family:"Microsoft YaHei"'>）使用选项<span lang=EN-US>-u</span>创建</span></p>

<table class=a0 border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr style='height:14.9pt'>
  <td width=836 valign=top style='width:836.15pt;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt;height:14.9pt'>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  weijie]#<b> mktemp -u wj123.XXXXXX         //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>使用</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>-u</span></b></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>选项</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>wj123.dSgIKl</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  weijie]#<b> ls                                  //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>看不到临时文件</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>1.c  wj123.kpET 
  wj123.oH2o4P  wj234.q1C  wjtpflR</span></code></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal align=center style='text-align:center;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>Copyright@david 
zhytwj2018@163.com</span></p>

</div>

</body>

</html>
